Quit allows you to automatically quit a 4D database by formula. The Expr is used to specify what you want to do:
Expr=1, Quit displays the "Are you sure?" dialog, then, if user clicks the OK button, flushes and ejects all disks and ShutDown the Macintosh.
Expr=2, Quit displays the standard dialog to open another Macintosh application.
Expr=3, Quit displays the "Are you sure?" dialog, then, if user clicks the OK button, goes back to the Finder.
Expr=11, like Expr=1 but without displaying the "Are you sure?" dialog
Expr=12, like Expr=2 but when the user quits the launched application he will go back to 4D and not to the Finder.
Expr=13, like Expr=3 but without displaying the "Are you sure?" dialog.
If your database is running under multi-user mode : 2 and 12 are not supported. 1 and 11 work respectively like 3 and 13. Quit4D works correctly under multi-user mode only if the database has been opened with a password with an associated startup procedure.